package com.nf.recruitment.controller;

import com.nf.recruitment.entity.City;
import com.nf.recruitment.entity.Provincial;
import com.nf.recruitment.entity.Status;
import com.nf.recruitment.service.CityService;
import com.nf.recruitment.service.StatusService;
import com.nf.recruitment.vo.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/status")
public class StatusController extends BaseController{
    @Autowired
    private StatusService service;

    @GetMapping("/list")
    public ResultVO<List<Status>> listProvincial() {
        List<Status> statuses = service.listStatus();
        return new ResultVO<>(200,"获取成功",statuses);
    }

}
